package grape.workflow.rest.task.mapper;

import grape.workflow.rest.task.form.TaskListPageForm;
import grape.workflow.rest.task.vo.TaskRepresentationVo;
import grape.workflow.rest.task.vo.TaskVo;
import grape.workflow.service.task.dto.TaskDto;
import grape.workflow.service.task.query.TaskQuery;
import org.flowable.ui.task.model.runtime.TaskRepresentation;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * Created by yangwei
 * Created at 2020/6/16 20:10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface TaskWebMapper {

    TaskRepresentationVo map(TaskRepresentation taskRepresentation);

    TaskVo map(TaskDto dto);

    TaskQuery map(TaskListPageForm form);
}
